Did anybody ever use CASE and SWITCH statements in DXL? Are there any alternatives CAUK77 - Fri Jul 15 05:46:33 EDT 2016 |
Re: CASE,SWITCH Statements Yes and no |
Re: CASE,SWITCH Statements Wolfgang Uhr - Fri Jul 15 05:47:28 EDT 2016 Yes and no Wolfgang you are absolutely clear on that on -- i can even understand.
CAUK77 , yes there is an alternative and this is create your own switch function. But it is my experience that it is more trouble than what it is worth.
|
Re: CASE,SWITCH Statements DOORSHAM - Fri Jul 15 08:31:37 EDT 2016 Wolfgang you are absolutely clear on that on -- i can even understand.
CAUK77 , yes there is an alternative and this is create your own switch function. But it is my experience that it is more trouble than what it is worth.
Case and Swicht-statemens are basic statements in any programming language. They are an alternative for something else, but not vice versa. |
Re: CASE,SWITCH Statements Wolfgang Uhr - Sat Jul 16 12:57:23 EDT 2016 Case and Swicht-statemens are basic statements in any programming language. They are an alternative for something else, but not vice versa. I don't know what IBM releases in Germany -- but there is no such thing as dxl case or switch statements in the dxl version we get. There ain't no such critter. |
Re: CASE,SWITCH Statements DOORSHAM - Sun Jul 17 06:19:49 EDT 2016 I don't know what IBM releases in Germany -- but there is no such thing as dxl case or switch statements in the dxl version we get. There ain't no such critter. Thats impossible, I've written dxl code for years and I'm pretty shure, that I've used this commands. But actually, I do not have a manual for the correct syntax. But I've really never missed it. In any case both words are valid key words: http://www.smartdxl.com/downloads/editors31.html |
Re: CASE,SWITCH Statements "not yet supported" - see https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014534526 |
Re: CASE,SWITCH Statements PekkaMakinen - Mon Jul 18 04:16:33 EDT 2016 "not yet supported" - see https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014534526 Hello Ok, you took me by surprise. But I'll ask the person who mangages my code now, because I really cannot believe it. And by the way: An Enumeration exists! Let me try it from the memory; struct myEnumeration{};
myEnumeration one = (myEnumeration addr_(1));
void myEnumerationProcedure(myEnumeration enumeration) {
myEnumerationProcedure(one); And If you look in this forum, you'll find code examples for string enumerations.
Best regards
|